#include "comm.hpp"


int main()
{
    int fd = open(FIFO_FILE, O_WRONLY);
    if(fd < 0)
    {
        perror("open");
        exit(FIFO_OPEN_ERR);
    }

    cout << "clien open file done" << endl;

    string msg;
    while(true)
    {
        cout << "Please Enter$ ";
        getline(cin, msg);

        write(fd, msg.c_str(), msg.size());
    }

    close(fd);

    return 0;
}